package com.ljw.user.service;

import com.ljw.spring.Bean;
import com.ljw.spring.Component;
import com.sun.net.httpserver.Filter;
import com.sun.net.httpserver.HttpExchange;

import java.io.IOException;

/**
 * @author 一朝风月
 * @date 2024/6/19 14:49
 * @Code 面向注解面向卿，终无解释再无你
 * @description
 */
@Component
public class OrderService {
@Bean("filter")
    public Filter filter(){
    return new Filter() {
        @Override
        public void doFilter(HttpExchange exchange, Chain chain) throws IOException {
            System.out.println("filter");
        }

        @Override
        public String description() {
            return null;
        }
    };
}
}
